<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="layout">
<head>
    <title>home</title>
</head>
<body>
<div layout:fragment="content">
    <div class="box-header with-border">
        <h3 class="box-title">统计查询</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal" role="form">
        <div class="box-body">
            <div class="form-group col-md-3">
                <label for="search_annualname" class="col-sm-4 control-label">年检名称</label>
                <div class="col-xs-8 no-padding">
                    <input type="text" id="search_annualname" class="form-control" placeholder="年检名称" name="search_annualname">
                </div>
            </div>
            <div class="form-group col-md-3">
                <label for="search_startdate" class="col-sm-4 control-label">From</label>

                <div class="col-xs-8 no-padding">
                    <input type="date" id="search_startdate" class="form-control" name="search_startdate">
                </div>
            </div>
            <div class="form-group col-md-3">
                <label for="search_enddate" class="col-sm-4 control-label">To</label>

                <div class="col-xs-8 no-padding">
                    <input type="date" id="search_enddate" class="form-control" name="search_enddate">
                </div>
            </div>
            <div class="form-group col-md-3 right-button">
                <button onclick="searchPara()" type="button" class="btn btn-danger right-button">查询</button>

            </div>
        </div>
    </form>
    <div class="form-group col-md-3 right-button">
        <button onclick="searchCert()" type="button" class="btn btn-danger right-button">证书状态统计查询</button>

    </div>

    <div class="box-body">
        <table id="statistics" class="table table-bordered table-striped">
            <thead>
            <tr>
                <th>序号</th>
                <th>年检名称</th>
                <th>年检开始时间</th>
                <th>年检结束时间</th>
                <th>年检总人数</th>
                <th>年检未年检人数</th>
                <th>年检待审核人数</th>
                <th>年检通过人数</th>
                <th>年检不通过人数</th>
            </tr>
            </thead>
            <tbody></tbody>
        </table>
    </div>
    <div class="modal" id="certStat">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h3 class="modal-title">证书状态查询结果</h3>
                </div>
                <div class="modal-body">
                    <form class="form-horizontal" id="certForm">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="cert_valid" class="col-sm-4 control-label">有效证书数量</label>

                                <div class="col-sm-8">
                                    <label id="cert_valid" class="col-sm-2 control-label">无</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="cert_pause" class="col-sm-4 control-label">暂停证书数量</label>

                                <div class="col-sm-8">
                                    <label id="cert_pause" class="col-sm-2 control-label">无</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="cert_cancel" class="col-sm-4 control-label">注销证书数量</label>

                                <div class="col-sm-8">
                                    <label id="cert_cancel" class="col-sm-2 control-label">无</label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="cert_total" class="col-sm-4 control-label">证书总数</label>

                                <div class="col-sm-8">
                                    <label id="cert_total" class="col-sm-2 control-label">无</label>
                                </div>
                            </div>

                        </div>
                    </form>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-warning" data-dismiss="modal">退出</button>
                </div>
            </div>
        </div><!-- /.modal -->
    </div>
    <script src="../../static/js/pages/statistic.js"></script>
</div>
</body>
</html>